cod_class_damage_victim

Syntax

forward cod_class_damage_victim(attacker, victim, weapon, &Float:damage, damageBits, hitPlace);

Usage

attacker
Attacker index
victim
Victim index
weapon
Weapon used to make this damage
damage
Amount of damage to deal, can be manipulated,
set to COD_BLOCK (-1.0) to block damage
damageBits
Damage flags in DMG_* format
hitPlace
Body hit place in HIT_* format

Description

Player class called before player receives damage.

Return

This forward ignores the returned value.